Don't compare booleans
authorMatthias Clasen <mclasen@redhat.com>
Tue, 9 Dec 2014 05:22:56 +0000 (00:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 9 Dec 2014 05:42:40 +0000 (00:42 -0500)
Just use negation.

gtk/gtktreemodel.c

index 362e339886556f6ad6c95f629fc0c4540dc70d27..39065621f762b1cc8470ce45745b019ba683b583 100644 (file)
@@ -2014,7 +2014,7 @@ gtk_tree_model_foreach (GtkTreeModel            *model,
   g_return_if_fail (func != NULL);
 
   path = gtk_tree_path_new_first ();
-  if (gtk_tree_model_get_iter (model, &iter, path) == FALSE)
+  if (!gtk_tree_model_get_iter (model, &iter, path))
     {
       gtk_tree_path_free (path);
       return;